:root {
  --background-color: #000000;
  --background-color-2: rgb(40, 40, 40);
  --text-color: #ffffff;
  --hover-color: rgb(123, 123, 236);
  --background-color-beflex: #091e2f;
  --cta: rgb(255, 157, 0);
}

body {
  background-color: var(--background-color-beflex);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

.space {
  height: 400px;
  clear: both;
}
* {
  box-sizing: border-box;
}

.page-top {
  width: 80vw !important;
  margin: 0 auto;

  display: flex;
  background-color: var(--background-color-beflex);
  position: sticky;
  z-index: 1;
  transition: height 1s ease; /* Smooth transition for background color */
  height: fit-content;

  margin-bottom: 5rem;
}

.page-top.stuck {
  top: 0;
  height: 30px; /* Height when stuck */
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 2rem;

  align-items: center;
  transition: max-height 0.5s ease, opacity 0s ease, transform 0.5s ease; /* Added transform transition */
  max-height: 100px; /* Set an initial max-height */
  opacity: 1; /* Fully visible initially */
}

.logo-container.stuck {
  max-height: 0; /* Collapsed height */
  opacity: 0; /* Fade out effect */
  transform: translateY(-20px); /* Optional: add a little upward movement */
  pointer-events: none; /* Disable interactions */
}

.link-home-page {
  display: flex;
  gap: 2rem;

  cursor: pointer;

  width: fit-content;
  height: fit-content;

  text-decoration: none;
  color: var(--text-color);
}

.top-page-logo {
  flex: 1;
  margin-left: 15px;
  max-height: 60px; /* Limits the height */
  max-width: fit-content;  /* Ensures it doesn’t exceed the container’s width */
  object-fit: contain; 
  transition: width 0.5s ease, height 0.5s ease;
  padding-left: 2rem;
}

.top-page-logo.stuck {
  width: 0;
  height: 0;
}

.top-page-slogan {
  flex: 2;
  font-size: 14px;
  margin-top: 25px;
  
}
.top-page-slogan.stuck {
  width: 0;
  height: 0;
  transition: width 0.5s ease, height 0.5s ease;
}

.navbar-container {
  flex: 1.1;

  display: flex;
  justify-content: space-around;
  align-items: center;


  transition: flex 0.5s ease, opacity 0.5s ease, max-width 0.5s ease; /* Smooth transition for flex and opacity */
}

.navbar-container.stuck {
  flex: 1 0 100%; /* Occupies full width of page-top */
  opacity: 1; /* Ensure it is visible when stuck */
  gap: 0px;
}

.navbar-element {
  flex: 1;
  color: var(--text-color);
  text-decoration: none;
  font-size: 13.1px;
  text-align: center;
  transition: max-width 0.5s ease;

  height: fit-content;
  align-items: center;
}

.navbar-element.stuck {
  max-width: 250px;
}

.navbar-element:hover {
  cursor: pointer;
  color: var(--hover-color);
  transition: 0.2s;
}

.dropdown {
  display: inline;
}

.dropdown a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  padding: 5px 10px;
}

.dropdown-link:hover {
  background-color: var(--background-color-beflex);
  transition: 0.2s;

  color: var(--hover-color);
}

.dropdown .content {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: var(--background-color-beflex);
  position: absolute;
  min-width: 200px;
  font-size: 14px;
  box-shadow: 2px 2px 5px rgb(69, 69, 69);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.dropdown:hover .content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 1000px;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.seccion {
  height: fit-content;
  width: 80vw;

  margin: 10rem auto;
  
  
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;

  gap: 2rem;
}


.div-logo {
  width: 100%;
  height: fit-content;
  margin: 0 auto;

  justify-content: flex-start;
}

.div-logo img {
  flex: 1 1 (200px);
  max-width: 200px;

}
.div-h1 {
  display: flex;
  justify-content: flex-start;

  height: fit-content;
  width: 100%;
}

.div-h1 h1 {
  font-size: 5rem;
  line-height: 5rem;
  margin: 0;

  flex: 1;
}
.div-h2 {
  display: flex;
  justify-content: flex-start;

  height: fit-content;
  width: 80%;
  margin-top: 0;
}

.div-h2 h2 {
  font-weight: 400;
  margin: 0 auto;

  flex: 1;
}


.div-beflex {
  width: 100%;
  height: fit-content;


}

.seccion2 {
  width: 80%;
  height: fit-content;
  margin: 0 auto;
}

.seccion2-div {
  margin: 0 auto;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  
  gap: 2rem;
  justify-content: space-around;
  align-items: center;
}

.seccion2-div p {
  font-size: 1.4rem;
}

.seccion2-div div{
  flex: 1;

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  justify-content: space-around;
  align-items: center;

  gap: 1rem;
}

@media (max-width: 760px) {
  .seccion2-div div {
    min-width: 50vw;
    text-align: center;
  }
}


.imagen1 {
  width: 100px;
  
}

.imagen2 {
width: 200px;
}
.seccion3 {
  display: grid;

  grid-template-columns: repeat(12, 1fr); /* 12 equal columns */
  grid-template-rows: repeat(12, 80px);

  width: 90%;
  height: fit-content;

  margin: 0 auto;
}

@media (max-width: 768px){
  .seccion3 {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    gap: 1rem;

    width: 90%;
    height: fit-content;

    margin: 3rem auto;
  }
  #bflex-img {
    margin: 3rem auto;
  }

  .div-form {
    text-align: left;
    width: 90vw;
    padding-bottom: 5rem;
  }
  .div-form img {
    display: none;
  }
}


.seccion3 div:nth-of-type(1) {
height: 16rem;
width: fit-content;
margin: 0 auto;

/* box-shadow: -2px 1px 5px #525252; */

border-radius: 1rem;

grid-column: 2/4;
grid-row: 5/7;

/* background-color: red; */
}
.seccion3 div:nth-of-type(2) {
height: 16rem;
width: fit-content;
margin: 0 auto;

/* box-shadow: 2px 1px 5px #525252; */

border-radius: 1rem;

grid-column: 10/12;
grid-row: 5/7;
 
/* background-color: blue; */
}

.seccion3 div:nth-of-type(3) {
height: 16rem;
width: fit-content;
margin: 0 auto;

/* box-shadow: -1px 4px 5px #525252; */

border-radius: 1rem;

grid-column: 4/6;
grid-row: 8/10;
  
/* background-color: green; */
}

.seccion3 div:nth-of-type(4) {
height: 16rem;
width: fit-content;
margin: 0 auto;

/* box-shadow: 2px 4px 5px #525252; */

border-radius: 1rem;
  
grid-column: 8/10;
grid-row: 8/10;
  
/* backgro  und-color: yellow; */
}

.seccion3 img {
  height: 215px;
  width: 230px;
  
  grid-column: 5/9;
  grid-row: 4/8;
  
  margin:  0 auto;
  }
.seccion3 h2 {
  grid-column: 4/10;
  grid-row: 2/3;

  margin: 0 auto;
  font-size: 3rem;
}

.seccion3 p, h3 {
  text-align: center;
}

.seccion3 h3 {
  font-weight: 600;
  font-style: oblique;
}

.seccion4 {
  width: 80%;
  height: 100vh;

  margin: 0 auto;
}

.div-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  width: 100%;
  height: fit-content;

  justify-content: space-around;
}
#form {
  flex: 1;
  max-width: 50%;
  min-width: 20rem;
}
#form label, button{
  display: block;
  cursor: pointer;
}
#form label {
  width: 90%;
}

#form input, textarea {
  width: 90%;
  background-color: #c5c5c5;
}

#form button {
  background-color: gold;
  color: var(--background-color);

  width: 5rem;
  padding: 8px;
  text-decoration: none;

  border: none;
  margin-top: 1rem;
  transition: all 0.3s ease-in-out;

  cursor: pointer;
}

#form button:hover {
  transform: scale(1.02);
}

.div-form img {
  flex: 1;

  height: 300px;
  max-width: 250px;
  width: auto; /* Maintain original aspect ratio */
  object-fit: contain; /* Ensure the image fits within the container */
}


.beflex-contacto-h2 {
  font-style: oblique;
  margin-bottom: 7rem;

  text-align: center;
}


